package com.example.takeaway.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.takeaway.model.bo.User;
import com.example.takeaway.model.dto.ShopLoginDTO;
import com.example.takeaway.model.vo.UserTokenVO;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-10-12
 */
public interface UserService extends IService<User> {

    void sendCode(String email);

    UserTokenVO loginByCode(String email, String code);

    void sendAdminCode(String email);

    UserTokenVO adminLoginByCode(String email, String code);

    UserTokenVO loginByUsernameAndPassword(ShopLoginDTO param);
}
